/**
 * 
 */
package com.sx.form.ts.biz;

import java.util.List;

import com.sx.feesunit.exception.SXException;
import com.sx.form.ts.entity.HouseInfoAndAttachment;
import com.sx.form.ts.entity.HouseInfoAndRegion;
import com.sx.form.ts.entity.HouseInfoEntity;

/**
 * @author Administrator
 *
 */
public interface IHouseInfoBiz {
	/**
	 *加载房屋数据信息 
	 **/
	public List<HouseInfoEntity> findHouseInfoForInfosPage(HouseInfoEntity houseinfo) throws SXException;
	/**
	 *只编辑房源信息 
	 **/
	public boolean editHouseInfoOnly(HouseInfoEntity houseinfo) throws SXException;
	/**
	 * 删除房源信息
	 **/
	public boolean deleteHouseInfoById(HouseInfoEntity houseinfo) throws SXException;
	/**
	 * 获取房源信息
	 * @throws SXException
	 **/
	public List<HouseInfoEntity> findHouseInfo(HouseInfoEntity houseinfo,String queryinfo) throws SXException;
	/**
	 *按附件编号删除房源与附件关联信息 
	 **/
	public boolean deleteHouseInfoAndKeyImageInfo(Integer fid) throws SXException;
	/**
	 *按附件编号删除房源与附件关联信息 
	 **/
	public boolean deleteHouseInfoAndAttachmentInfo(Integer fid) throws SXException;
	/**
	 * 按编号查询房源信息
	 * 带分页信息
	 **/
	public HouseInfoEntity getHouseInfoById(HouseInfoEntity houseinfo) throws SXException;
	/**
	 * 按用户编号查询表单信息
	 * 带分页信息
	 **/
	public String queryHouseInfoById(HouseInfoEntity houseinfo) throws SXException;
	/**
	 * 获取房源数据信息
	 * 用滚动条进行分页
	 * 不带total的数据信息
	 **/
	public String queryHouseInfoWithOutTotal(HouseInfoEntity houseinfo) throws SXException;
	/**
	 * 获取房源数量
	 * @throws SXException
	 **/
	public Integer  findHouseInfoCount(HouseInfoEntity houseinfo) throws SXException;
	/**
	 * 获取房源信息
	 * @throws SXException
	 **/
	public List<HouseInfoEntity> findHouseInfo(HouseInfoEntity houseinfo) throws SXException;
	/**
	 *为房源添加区域关联信息
	 * @throws SXException 
	 **/
	public Integer addHouseInfoCascadeRegion(HouseInfoEntity houseinfo) throws SXException;
	/**
	 *暂存一个房源信息 
	 **/
	public Integer addHouseInfoDraft(HouseInfoEntity houseinfo) throws SXException;
	/**
	 *编辑房源信息 
	 **/
	public boolean editHouseInfo(HouseInfoEntity houseinfo) throws SXException;
	/**
	 *为房源添加附件关联信息
	 **/
	public Integer addHouseInfoCascadeFileIdInfo(Integer houseid,Integer attachmentid) throws SXException;
}
